package com.neu.cloudFactory.VO;

import com.neu.cloudFactory.PO.EquipMsg;
import com.neu.cloudFactory.PO.EquipType;
import com.neu.cloudFactory.PO.Factory;
import com.neu.cloudFactory.PO.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor

public class EquipMsgVO {
    private String id;
    private String code;
    private String name;
    private String type;
    private String detail;
    private String equipState;
    private String rentState;
    private String factory;
    private String source;
    private String userAccount;

    public EquipMsgVO (EquipMsg equipMsg, Factory factory, EquipType type,String userAccount){
        this.id = Integer.toString(equipMsg.getId());
        this.code = equipMsg.getCode();
        this.name = equipMsg.getName();
        this.type = type.getName();
        this.detail = equipMsg.getDetail();
        this.equipState = equipMsg.getRunState();
        this.rentState = equipMsg.getRentState();
        this.factory = factory.getName();
        this.source = equipMsg.getSource();
        this.userAccount = userAccount;
    }


}
